package org.jh

import org.multiverse.annotations.TransactionalMethod;

class TransferService {
	@TransactionalMethod
	void transactionalTransfer(Account from, Account to, int sum){
		to.balance += sum
		from.balance -= sum
	}
	
	void nonTransactionalTransfer(Account from, Account to, int sum){
		to.balance += sum
		from.balance -= sum
	}	
}